package com.openess.bigsearch.engine.BPlusTree;

public class defaultBKCompare implements BKComparable {
	@Override
	public int compare(byte[] strKey, byte[] data, int offset, int length) {
		int result = 0;
		// 可判断全集与子集的大小
		for (int i = 0; result == 0 && i < length; i++) {
			result = strKey[i] - data[offset + i];
		}
		return result;
	}
}
